/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hoja7bst;

import structure5.Vector;


/**
 *
 * @author Douglas Dávila
 */

public class WordVector implements WordSet {
   private Vector<Word> base;
	
	public WordVector()
	{
		base = new Vector<Word>();
	}
    @Override
    public void add(Word wordObject) {
        base.add((Word)wordObject);
    }

    @Override
    public Word get(Word word) {
        int index = base.indexOf(word);
		if(index == -1) {
               return null;
             }
                return base.get(index);
    }

    
  

    
}
